<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%><%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${site.name }</title>
<meta name="description" content="${site.description }" />
<meta name="keywords" content="${site.keywords}"/>
<jsp:include page="../../../inc/css.jsp"></jsp:include>
<jsp:include page="../../../inc/js.jsp"></jsp:include>
<script type="text/javascript">
	$(function() {
		$("#del").button().click(function(){
			if(confirm('确定删除？'))
			$.ajax( {
				type : "post",
				url : "deletePosition.do",
				data : {
					id:'${param.id}'
				},
				error : function() {
					alert("加载错误");
				},
				dataType:'json',
				success : function(data) {
					if(data.success){
						alert('操作成功！');
						window.close();
					}else alert("操作失败！"+data.err);
				}
			});
		});
		$("#fix").button().click(function(){
			if(confirm('确定<c:if test="${o.fix>0}">取消</c:if>推荐？'))
			$.ajax( {
				type : "post",
				url : "fixPosition.do<c:if test="${o.fix>0}">?fix=0</c:if>",
				data : {
					id:'${param.id}'
				},
				dataType:'json',
				error : function() {
					alert("加载错误");
				},
				success : function(data) {
					if(data.success){
						alert('操作成功！');
					}else alert("操作失败！"+data.err);
				}
			});
		});
	});
</script>
</head>
<body>
<jsp:include page="../../../head.jsp"></jsp:include>
<div class="container">
<div class="header"></div>
<div class="mainContent">
<div class="content">
<table width="99%" align="center">
	<tr>
		<td colspan="2" class="lineNav">${o.name}
		<!-- <div style="float: right"><c:if test="${admin!=null}"><button id="del">删除</button>
		<button id="fix"><c:if test="${o.fix>0}">取消</c:if>推荐</button></c:if>
		</div> --></td>
	</tr>
	<tr>
		<td width="10%">公司：</td>
		<td width="90%"><a href="showCompany.do?id=${o.companyId }" target="_blank">${o.company}</a> </td>
	</tr>
	<tr>
		<td>区域：</td>
		<td>${o.region}</td>
	</tr>
	<tr>
		<td>性别：</td>
		<td>${o.sex}</td>
	</tr>
	<tr>
		<td>工资：</td>
		<td>${o.wages}</td>
	</tr>
	<tr>
		<td>是否兼职：</td>
		<td>${o.workType}</td>
	</tr>
	<tr>
		<td>人数：</td>
		<td>${o.persons}</td>
	</tr>
	<tr>
		<td>有效期：</td>
		<td>${o.endDate}</td>
	</tr>
	<tr>
		<td>具体信息：</td>
		<td style="min-height:60px;">${o.detail}</td>
	</tr>
</table>
<jsp:include page="../msg/msgReply.jsp">
	<jsp:param value="j_position" name="tableName" />
	<jsp:param value="${o.id}" name="pid" />
</jsp:include></div>
<div class="sidebar"><jsp:include page="../../../advRight.jsp"></jsp:include>
<jsp:include page="../../../inc/searchPosition.jsp"></jsp:include></div>
</div>
</div>
<jsp:include page="../../../foot.jsp"></jsp:include>
</body>
</html>